const http = uni.$u.http

// 首頁轮播图
export const getBanner = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/mobile/store/wheelPicture/listWheelPictureFront', data, config)
// 楼层商品
export const getShop = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/mobile/store/findFloorByAppWarehouseId', data, config)
// 首页分类入口
export const getCategory = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/store/category/listFirstDisplay', data, config)
// 根据楼层ID获取商品
export const getCategoryShop = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/mobile/store/findFloorByAppFloorId', data, config)
// 首页资源位
export const getResource = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/mobile/store/moveResource/frontPage', data, config)
// 首页资源位获取跳转信息
export const searchWheelSubjectMsg = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/store/subject/searchWheelSubjectMsg', data, config)
// 查询弹框集合
export const moveBulletListPage = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/mobile/store/moveBulletFrame/listPage', data, config)
//批量领券
export const getBatchCouponForBind = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/mobile/coupon/getBatchCouponForBind', data, config)
